class Grole { 

    static belongsTo = Guser
    static hasMany = [users:Guser, permissions:Gpermission]
    static permlist = []


    String name

    String toString() { name }

     def List getpermList() {
        def tempRoles = []
        permissions.each{ r->
            tempRoles.add(r.toString())
        }
        permlist = tempRoles
        permlist
    }

   
}
